package com.example.catalog.enums;

import com.example.common.base.BaseEnum;

/**
 * @description 汽车类型枚举
 */
public enum CarTypeEnum implements BaseEnum<CarTypeEnum, Integer> {

    /**
     * @description 马自达
     */
    BM(0, "宝马"),

    /**
     * @description 马自达
     */
    MAD(1, "马自达");

    private int code;

    private String description;

    CarTypeEnum(int code, String description) {
        this.code = code;
        this.description = description;
    }

    @Override
    public Integer getValue() {
        return code;
    }

    @Override
    public String getDisplayName() {
        return description;
    }
}
